<?php
namespace app\index\service;
use think\Queue;

class JobService
{

    public function test(){
        $jobClassName = 'app\index\job\Test';
        $jobQueueName = "testQueue";
        $data = [ 'name'=>'zhangsan'.time()] ;
        $isPushed = Queue::push( $jobClassName , $data , $jobQueueName );
        if( $isPushed !== false ){
            return true;
        }else{
            return false;
        }
    }


}
